import request from "./index";

/** 查询学生列表 */
export async function studentList(data: any = {}) {
  return request<API.TableResProps<API.UserInfoItem[]>>(
    "/school-class/studentList",
    data
  );
}

/** 获取地区下的 学校 */
export async function getSchoolListByCode(data: any = {}) {
  return request<API.SchoolItem[]>("/school/schoolList", data);
}

/** 查询学校年级 */
export async function gradeList(data: any = {}) {
  return request<API.GradeItem[]>("/school/gradeList", data);
}

/** 查询学校年级下班级列表 */
export async function getCalssByGradeId(data: any = {}) {
  return request<API.ClassItem[]>("/school-class/classList", data);
}

/** 查询学校年级下班级列表 */
export async function getClassListByChart(data: any = {}) {
  return request<API.ClassItem[]>("/school-class/classListByChart", data);
}

/** 查询学校年级下老师列表 */
export async function classAdminList(data: any = {}) {
  return request<API.TableResProps<API.ClassAdminItem[]>>(
    "/school-class/classAdminList",
    data
  );
}
